package Package.FileM.Delete;

import java.io.File;
import java.io.IOException;

public class Delete {
    public static void Delete() throws IOException {
        File f=new File("D:\\insert\\java.txt");
//        删除
        System.out.println(f.delete());
        System.out.println("==================");
        File f3 = new File("myFile\\itcast");
        System.out.println(f3.mkdirs());
        File f4 = new File("myFile\\itcast\\java.txt");
        System.out.println(f4.createNewFile());
        System.out.println(f4.delete());
        System.out.println("------------");
        System.out.println(f3.delete());
        File a=new File("myFile");
        System.out.println(a.delete());

    }
}
